home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 8174 / 8174.xpi / chrome / antbar.jar / content / player / player.xul < prev   
Extensible Markup Language  |  2009-12-30  |  5KB  |  124 lines

  1. <?xml version="1.0"?>
  2. <!-- 
  3.     player.xul
  4.     firefox
  5.  
  6.     Created by Zak on 2008-06-17.
  7.     Copyright 2008 Ant.com. All rights reserved.
  8. -->
  9.  
  10. <!DOCTYPE window SYSTEM "chrome://antbar/locale/antplayer.dtd">
  11.  
  12. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  13. <?xml-stylesheet href="chrome://antbar/content/player/skin/player.css" type="text/css"?>
  14.  
  15. <window id="antFlvPlayerWindow"
  16.     title="&antFlvPlayerWindow.title;"
  17.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  18.     xmlns:html="http://www.w3.org/1999/xhtml"
  19.     xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  20.     
  21.     <!-- Includes -->
  22.     <script type="application/x-javascript" src="chrome://antbar/content/lib/global.js"/>
  23.     <script type="application/x-javascript" src="chrome://antbar/content/lib/array.js"/>
  24.     <script type="application/x-javascript" src="chrome://antbar/content/lib/lib.js"/>
  25.     <script type="application/x-javascript" src="chrome://antbar/content/lib/lang.js"/>
  26.     <script type="application/x-javascript" src="chrome://antbar/content/prefs/prefs.js"/>
  27.     <script type="application/x-javascript" src="chrome://antbar/content/lib/flvlink.js"/>
  28.     <script type="application/x-javascript" src="chrome://antbar/content/player/player.js"/>
  29.     
  30.     <stringbundleset id="strbundles">
  31.         <stringbundle id="langstr" src="chrome://antbar/locale/antbar.properties"/>
  32.     </stringbundleset>
  33.  
  34.     <!-- HeadBar -->
  35.     <hbox id="antFlvPlayerHeadBar">
  36.         <vbox>
  37.             <image id="antFlvPlayerLogo" onclick="AntPlayer.onLogoClick();" tooltiptext="Ant.com"/>
  38.         </vbox>
  39.         <vbox align="left">
  40.             <html:table id="antFlvPlayerSearchTable" cellpadding="0" cellspacing="0" oncontextmenu="return false;">
  41.                 <html:tr oncontextmenu="return false;">
  42.                     <html:td oncontextmenu="return false;">
  43.                         <html:input maxlength="2048"
  44.                                     id="antFlvPlayerSearchBox"
  45.                                     type="text"
  46.                                     value="&antFlvPlayerHeadSearchBox.value;"
  47.                                     onfocus="AntPlayer.onSearchBoxOnFocus(true);"
  48.                                     onblur="AntPlayer.onSearchBoxOnFocus(false);"
  49.                                     onkeypress="AntPlayer.onSearchBoxKeyPress(event);"
  50.                                     oncontextmenu="return false;"/>
  51.                     </html:td>
  52.                     <html:td oncontextmenu="return false;">
  53.                         <html:a title="Search" id="antFlvPlayerSearchButton" onclick="AntPlayer.doSearch('web');" oncontextmenu="return false;">Search</html:a>
  54.                     </html:td>
  55.                 </html:tr>
  56.             </html:table>
  57.         </vbox>
  58.     </hbox>
  59.     
  60.     <!-- Player -->
  61.     <html:p id="antFlvPlayerTitleBar" oncontextmenu="return false;">[<html:strong>Ant.com</html:strong>] Player</html:p>
  62.     <hbox id="antFlvPlayerContentBox" flex="1">
  63.  
  64.         <html:embed id="antFlvPlayerEmbed"
  65.                 src="chrome://antbar/content/player/mediaplayer.swf"
  66.                 allowscriptaccess="always"
  67.                 allowfullscreen="true"
  68.                 menu="false"
  69.                 flex="1"
  70.                 wmode="opaque"
  71.                 type="application/x-shockwave-flash"
  72.                 oncontextmenu="return false;"/>
  73.  
  74.         <splitter id="antFlvPlayerSplitter"
  75.               state="open"
  76.               collapse="none"
  77.               resizebefore="closest"
  78.               resizeafter="farthest"
  79.               hidden="true"/>
  80.         <!-- Contextual menu -->
  81.         <popupset>
  82.             <menupopup id="antFlvPlayerPopupMenu">
  83.                 <menuitem id="antFlvPlayerPopupPlay"
  84.                             label="&antFlvPlayerPopupPlay.label;"
  85.                             default="true"
  86.                             oncommand="AntPlayer.onPopupPlay(event);"/>
  87.                 <menuseparator/>
  88.                 <menuitem id="antFlvPlayerPopupRename"
  89.                             label="&antFlvPlayerPopupRename.label;"
  90.                             oncommand="AntPlayer.onPopupRename(event);"/>
  91.                 <menuseparator/>
  92.                 <menuitem id="antFlvPlayerPopupDelete"
  93.                             label="&antFlvPlayerPopupDelete.label;"
  94.                             oncommand="AntPlayer.onPopupDelete(event);"/>
  95.             </menupopup>
  96.         </popupset>
  97.  
  98.         <!-- List of flv to be played -->
  99.         <richlistbox id="antFlvPlayerRichListBox">
  100.             <!-- <richlistitem class="antFlvPlayerRichListItem antFlvPlayerRichListItemGrey"
  101.                     ondblclick="AntPlayer.onListItemDblClick(event);"
  102.                     context="antFlvPlayerPopupMenu"
  103.                     orient="vertical">
  104.                 <label value="IT Guy Vs Dumb EmployeesVideo" class="antFlvPlayerRichListName" crop="end"/>
  105.                 <label value="break" class="antFlvPlayerRichListInfos" crop="end"/>
  106.             </richlistitem>
  107.             <richlistitem class="antFlvPlayerRichListItem antFlvPlayerRichListItemActive"
  108.                     ondblclick="AntPlayer.onListItemDblClick(event);"
  109.                     context="antFlvPlayerPopupMenu"
  110.                     selected="true"
  111.                     current="true"
  112.                     orient="vertical">
  113.                 <label value="Video Bumble B-Boy - Transformers Bumblebee B-boy dance boivin - Dailymotion Share Your Videos"
  114.                     class="antFlvPlayerRichListName" crop="end"/>
  115.                 <label value="dailymotion"
  116.                     class="antFlvPlayerRichListInfos" crop="end"/>
  117.             </richlistitem> -->
  118.         </richlistbox>
  119.     </hbox>
  120.     <script type="application/x-javascript">
  121.         AntPlayer.init(document);
  122.     </script>
  123. </window>
  124.